package com.mindcoord.handbook.dao;

import com.mindcoord.handbook.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    List<Student> listStudents();

    List<Student> listStudentsByClazzId(@Param("clazzId") Integer clazzId);

    Student getStudentById(@Param("id") Integer id);

    Boolean insertStudent(Student student);

    Boolean deleteStudentById(@Param("id") Integer id);

    Boolean updateStudent(Student student);

}
